package com.fc.advbox.dto.user;

import com.fc.advbox.utils.validator.group.AddGroup;
import com.fc.advbox.utils.validator.group.UpdateGroup;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 系统用户
 *
 * @author Charles
 */
@Getter
@Setter
public class AdvUserReqDto implements Serializable {
	/**
	 * 用户名
	 */
	@NotBlank(message="用户名不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String name;

	/**
	 * 用户类型 1:管理公司,2: 代理商,3:渠道商,4:租户广告商,5:投资人,
	 */
	private String type;

	/**
	 * 密码
	 */
	@NotBlank(message="密码不能为空", groups = AddGroup.class)
	private transient String password;

	/**
	 * 真实姓名
	 */
	private String realName;

	/**
	 * 身份证号码
	 */
	private String idCard;

	/**
	 * 邮箱
	 */
	@Email(message="邮箱格式不正确", groups = {AddGroup.class, UpdateGroup.class})
	private String email;

	/**
	 * 手机号
	 */
	@NotBlank(message="手机号码不能为空", groups = AddGroup.class)
	private String phone;


	/**
	 * 头像
	 */
	private String avatar;

	/**
	 * 设备UUID
	 */
	private String deviceUUID;

	/**
	 * 微信OPEnID
	 */
	private String openId;

	/**
	 * 所属组织机构ID
	 */
	private String orgId;
}
